File tree 1 file changed +0
-26
lines changed
CoreFoundation/Preferences.subproj
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -169,33 +169,8 @@ CF_PRIVATE CFStringRef _CFPreferencesGetByHostIdentifierString(void) {
169
169
170
170
static unsigned long __CFSafeLaunchLevel = 0 ;
171
171
172
- #if TARGET_OS_WIN32
173
- #include <ShlObj.h>
174
-
175
- #endif
176
-
177
172
static CFURLRef _preferencesDirectoryForUserHostSafetyLevel (CFStringRef userName , CFStringRef hostName , unsigned long safeLevel ) {
178
173
CFAllocatorRef alloc = __CFPreferencesAllocator ();
179
- #if TARGET_OS_WIN32
180
-
181
- CFURLRef url = NULL ;
182
-
183
- CFMutableStringRef completePath = _CFCreateApplicationRepositoryPath (alloc , CSIDL_APPDATA );
184
- if (completePath ) {
185
- // append "Preferences\" and make the CFURL
186
- CFStringAppend (completePath , CFSTR ("Preferences\\" ));
187
- url = CFURLCreateWithFileSystemPath (alloc , completePath , kCFURLWindowsPathStyle , true);
188
- CFRelease (completePath );
189
- }
190
-
191
-
192
- // Can't find a better place? Home directory then?
193
- if (url == NULL )
194
- url = CFCopyHomeDirectoryURLForUser ((userName == kCFPreferencesCurrentUser ) ? NULL : userName );
195
-
196
- return url ;
197
-
198
- #else
199
174
CFURLRef location = NULL ;
200
175
201
176
CFKnownLocationUser user ;
@@ -219,7 +194,6 @@ static CFURLRef _preferencesDirectoryForUserHostSafetyLevel(CFStringRef userName
219
194
220
195
CFRelease (base );
221
196
return location ;
222
- #endif
223
197
}
224
198
225
199
static CFURLRef _preferencesDirectoryForUserHost (CFStringRef userName , CFStringRef hostName ) {
You can’t perform that action at this time.
0 commit comments