[macruby-changes] [2120] MacRuby/branches/experimental/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 30 23:48:26 PDT 2009
Revision: 2120
http://trac.macosforge.org/projects/ruby/changeset/2120
Author: lsansonetti at apple.com
Date: 2009-07-30 23:48:25 -0700 (Thu, 30 Jul 2009)
Log Message:
-----------
remove dead code
Modified Paths:
--------------
MacRuby/branches/experimental/string.c
Modified: MacRuby/branches/experimental/string.c
===================================================================
--- MacRuby/branches/experimental/string.c 2009-07-31 06:46:57 UTC (rev 2119)
+++ MacRuby/branches/experimental/string.c 2009-07-31 06:48:25 UTC (rev 2120)
@@ -944,24 +944,6 @@
* <code><=></code> <i>obj</i> returns zero.
*/
-#if 0
-static inline CFDataRef
-str_data(VALUE str)
-{
- if (*(VALUE *)str == rb_cByteString) {
- return rb_bytestring_wrapped_data(str);
- }
- else {
- CFDataRef data = CFStringCreateExternalRepresentation(NULL,
- (CFStringRef)str, kCFStringEncodingUTF8, 0);
- if (data != NULL) {
- CFMakeCollectable(data);
- }
- return data;
- }
-}
-#endif
-
static VALUE
rb_str_equal_imp(VALUE str1, SEL sel, VALUE str2)
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090730/bfa406bb/attachment.html>
More information about the macruby-changes
mailing list