[macruby-changes] [5128] MacRuby/trunk/io.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 6 19:45:01 PST 2011


Revision: 5128
          http://trac.macosforge.org/projects/ruby/changeset/5128
Author:   pthomson at apple.com
Date:     2011-01-06 19:44:56 -0800 (Thu, 06 Jan 2011)
Log Message:
-----------
Remove unused functions from io.c.

Modified Paths:
--------------
    MacRuby/trunk/io.c

Modified: MacRuby/trunk/io.c
===================================================================
--- MacRuby/trunk/io.c	2011-01-07 03:23:08 UTC (rev 5127)
+++ MacRuby/trunk/io.c	2011-01-07 03:44:56 UTC (rev 5128)
@@ -554,31 +554,7 @@
  *     f.pos    #=> 17
  */
 
-static inline off_t
-rb_io_read_stream_get_offset(CFReadStreamRef stream)
-{
-    off_t result;
 
-    CFNumberRef pos = CFReadStreamCopyProperty(stream,
-	    kCFStreamPropertyFileCurrentOffset);
-    if (pos == NULL) {
-	return -1;
-    }
-    CFNumberGetValue(pos, kCFNumberLongLongType, (void*)&result);
-    CFRelease(pos);
-
-    return result;
-}
-
-static inline void
-rb_io_read_stream_set_offset(CFReadStreamRef stream, off_t offset)
-{
-    CFNumberRef pos = CFNumberCreate(NULL, kCFNumberSInt64Type,
-	    (const void*)&offset);
-    CFReadStreamSetProperty(stream, kCFStreamPropertyFileCurrentOffset, pos);
-    CFRelease(pos);
-}
-
 static off_t
 ltell(int fd)
 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110106/59f0ee97/attachment.html>


More information about the macruby-changes mailing list