mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 03:48:49 +00:00
Removed unused plist file.
Reviewed by me.
This commit is contained in:
1 parent
4b7310d0cb
commit
02cb054b71
2 files changed
+2
-19
No files matched your search
@@ -1,17 +0,0 @@
|
||||
var FILE = require("file"),
|
||||
OBJJ = require("objective-j"),
|
||||
CPPropertyListCreateData = OBJJ.CPPropertyListCreateData,
|
||||
kCFPropertyListXMLFormat_v1_0 = OBJJ.kCFPropertyListXMLFormat_v1_0;
|
||||
|
||||
exports.readPlist = function(aPath)
|
||||
{
|
||||
var plistData = new OBJJ.objj_data();
|
||||
plistData.string = FILE.read(aPath, { charset:"UTF-8" });
|
||||
return OBJJ.CPPropertyListCreateFromData(plistData);
|
||||
}
|
||||
|
||||
exports.writePlist = function(aPath, plist, format)
|
||||
{
|
||||
format = format || OBJJ.kCFPropertyListXMLFormat_v1_0;
|
||||
FILE.write(aPath, OBJJ.CPPropertyListCreateData(plist, format).string, { charset:"UTF-8" });
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
var FILE = require("file"),
|
||||
SYSTEM = require("system"),
|
||||
plist = require("objective-j/plist");
|
||||
CFPropertyList = require("objective-j/core").CFPropertyList;
|
||||
|
||||
|
||||
var DefaultDictionary = nil,
|
||||
@@ -66,7 +66,7 @@ var DefaultDictionary = nil,
|
||||
temporaryDictionary = [CPDictionary dictionary];
|
||||
|
||||
if (path && FILE.isReadable(path))
|
||||
dictionary = plist.readPlist(path);
|
||||
dictionary = CFPropertyList.propertyListFromString(FILE.read(path, { charset:"UTF-8" }));
|
||||
|
||||
// readPlist will return nil if the file is empty
|
||||
if (!dictionary)
|
||||
|
||||
Reference in new issue
Block a user