Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb0a4cad

Browse files
committed
FX_NO_FILE_OPTIONS -- remove dead code
1 parent2b656c9 commitb0a4cad

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

‎tests/fsharpqa/Source/Misc/AsyncOperations.fs‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,35 +98,20 @@ namespace Microsoft.FSharp.Control
9898
static memberAsyncAppendText(path)= UnblockViaNewThread(fun()-> System.IO.File.AppendText(path))
9999
static memberAsyncOpenRead(path)= UnblockViaNewThread(fun()-> System.IO.File.OpenRead(path))
100100
static memberAsyncOpenWrite(path)= UnblockViaNewThread(fun()-> System.IO.File.OpenWrite(path))
101-
#if FX_NO_FILE_OPTIONS
102-
static memberAsyncOpen(path,mode,?access,?share,?bufferSize)=
103-
#else
104101
static memberAsyncOpen(path,mode,?access,?share,?bufferSize,?options)=
105-
#endif
106102
letaccess=match accesswith Some v-> v| None-> System.IO.FileAccess.ReadWrite
107103
letshare=match sharewith Some v-> v| None-> System.IO.FileShare.None
108-
#if!FX_NO_FILE_OPTIONS
109104
letoptions=match optionswith Some v-> v| None-> System.IO.FileOptions.None
110-
#endif
111105
letbufferSize=match bufferSizewith Some v-> v| None->0x1000
112106
UnblockViaNewThread(fun()->
113-
#if FX_NO_FILE_OPTIONS
114-
new System.IO.FileStream(path,mode,access,share,bufferSize))
115-
#else
116107
new System.IO.FileStream(path,mode,access,share,bufferSize, options))
117-
#endif
118108

119109
static memberOpenTextAsync(path)= System.IO.File.AsyncOpenText(path)
120110
static memberAppendTextAsync(path)= System.IO.File.AsyncAppendText(path)
121111
static memberOpenReadAsync(path)= System.IO.File.AsyncOpenRead(path)
122112
static memberOpenWriteAsync(path)= System.IO.File.AsyncOpenWrite(path)
123-
#if FX_NO_FILE_OPTIONS
124-
static memberOpenAsync(path,mode,?access,?share,?bufferSize)=
125-
System.IO.File.AsyncOpen(path, mode, ?access=access, ?share=share,?bufferSize=bufferSize)
126-
#else
127113
static memberOpenAsync(path,mode,?access,?share,?bufferSize,?options)=
128114
System.IO.File.AsyncOpen(path, mode, ?access=access, ?share=share,?bufferSize=bufferSize,?options=options)
129-
#endif
130115

131116
[<AutoOpen>]
132117
moduleStreamReaderExtensions=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp