public
Rubygem
Description: Ruby osx/plist extension for reading/writing property lists
Clone URL: git://github.com/kballard/osx-plist.git
Search Repo:
Remove the ::PropertyList deprecation module
kballard (author)
Fri Apr 25 09:27:36 -0700 2008
commit  c1aa253bce6be187765b8ddfe613ba755457e3a4
tree    e653ee6e94ca884ae9a49c015ebb74fb6071fa7d
parent  1045625fa4581907cd6e755958af50ed481a946f
...
69
70
71
72
73
74
75
...
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
...
575
576
577
578
579
580
581
582
...
69
70
71
 
72
73
74
...
113
114
115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
117
118
...
557
558
559
 
 
560
561
562
0
@@ -69,7 +69,6 @@
0
 
0
 static VALUE mOSX;
0
 static VALUE mPlist;
0
-static VALUE mPlistDeprecated;
0
 static VALUE timeEpoch;
0
 static VALUE ePropertyListError;
0
 
0
@@ -114,23 +113,6 @@
0
 }
0
 
0
 /* call-seq:
0
- * PropertyList.method_missing(symbol, [args]) -> result
0
- *
0
- * Forwards all method calls to the OSX::PropertyList class after
0
- * outputting a warning.
0
- */
0
-VALUE plist_deprecated_method_missing(int argc, VALUE *argv, VALUE self) {
0
- static bool shownWarning = false;
0
- if (!shownWarning) {
0
- fprintf(stderr, "Warning: PropertyList is deprecated. Use OSX::PropertyList instead.\n");
0
- shownWarning = true;
0
- }
0
- VALUE symbol = *argv++; argc--;
0
- Check_Type(symbol, T_SYMBOL);
0
- return rb_funcall3(mPlist, SYM2ID(symbol), argc, argv);
0
-}
0
-
0
-/* call-seq:
0
  * PropertyList.load(obj) -> object
0
  * PropertyList.load(obj, format) -> [object, format]
0
  *
0
@@ -575,8 +557,6 @@
0
  * Only works when CoreFoundation is available.
0
  */
0
 void Init_plist() {
0
- mPlistDeprecated = rb_define_module("PropertyList");
0
- rb_define_module_function(mPlistDeprecated,"method_missing", plist_deprecated_method_missing, -1);
0
   mOSX = rb_define_module("OSX");
0
   mPlist = rb_define_module_under(mOSX, "PropertyList");
0
   rb_define_module_function(mPlist, "load", plist_load, -1);

Comments

    No one has commented yet.