mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
More tidyups ... rem ove some previously deprecated methods and improve docs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21861 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8ba0f9a906
commit
bffdc3c8e7
5 changed files with 24 additions and 59 deletions
|
@ -1884,15 +1884,6 @@ static NSStringEncoding defaultEncoding;
|
|||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert from OpenStep internal string format to a string in
|
||||
* the local filesystem format, suitable for passing to system functions.<br />
|
||||
* This representation could theoretically vary between filesystems.<br />
|
||||
* On windows, the filesystem representation is utf-16 and is expected to
|
||||
* be used in conjunction with the variants of system calls which work
|
||||
* with unicode strings.<br />
|
||||
* Raises an exception if the character conversion is not possible.
|
||||
*/
|
||||
- (const char*) fileSystemRepresentationWithPath: (NSString*)path
|
||||
{
|
||||
const _CHAR *c_path = 0;
|
||||
|
@ -1909,13 +1900,6 @@ static NSStringEncoding defaultEncoding;
|
|||
return (const char*)c_path;
|
||||
}
|
||||
|
||||
/** Deprecated */
|
||||
- (NSString*) localFromOpenStepPath: (NSString*)path
|
||||
{
|
||||
GSOnceMLog(@"deprecated");
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method converts from a local filesystem specific name
|
||||
* to an NSString object. Use it to convert a filename returned by
|
||||
|
@ -1934,13 +1918,6 @@ static NSStringEncoding defaultEncoding;
|
|||
#endif
|
||||
}
|
||||
|
||||
/** Deprecated */
|
||||
- (NSString*) openStepPathFromLocal: (NSString*)localPath
|
||||
{
|
||||
GSOnceMLog(@"deprecated");
|
||||
return localPath;
|
||||
}
|
||||
|
||||
@end /* NSFileManager */
|
||||
|
||||
/* A directory to enumerate. We keep a stack of the directories we
|
||||
|
|
|
@ -3479,35 +3479,6 @@ static NSFileManager *fm = nil;
|
|||
return [fm fileSystemRepresentationWithPath: self];
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts this string, which is assumed to be a path in Unix notation ('/'
|
||||
* is file separator, '.' is extension separator) to a string path expressed
|
||||
* in the convention for the host operating system.
|
||||
*/
|
||||
- (NSString*) localFromOpenStepPath
|
||||
{
|
||||
GSOnceMLog(@"deprecated");
|
||||
|
||||
if (fm == nil)
|
||||
{
|
||||
fm = RETAIN([NSFileManager defaultManager]);
|
||||
}
|
||||
|
||||
return [fm localFromOpenStepPath: self];
|
||||
}
|
||||
|
||||
- (NSString*) openStepPathFromLocal
|
||||
{
|
||||
GSOnceMLog(@"deprecated");
|
||||
|
||||
if (fm == nil)
|
||||
{
|
||||
fm = RETAIN([NSFileManager defaultManager]);
|
||||
}
|
||||
|
||||
return [fm openStepPathFromLocal: self];
|
||||
}
|
||||
|
||||
- (BOOL) getFileSystemRepresentation: (char*)buffer
|
||||
maxLength: (unsigned int)size
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue