From 7bf48ce6cf5c75a2278d6545f02781a79f53ebbb Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 1 May 2010 02:58:17 +0000 Subject: Got rid of the old streaming system (see #142). --- lib/coderay.rb | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'lib/coderay.rb') diff --git a/lib/coderay.rb b/lib/coderay.rb index ef2574a..ad0bb5e 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -170,27 +170,6 @@ module CodeRay scan file, lang, options = {}, &block end - # Scan the +code+ (a string) with the scanner for +lang+. - # - # Calls scan. - # - # See CodeRay.scan. - def scan_stream code, lang, options = {}, &block - options[:stream] = true - scan code, lang, options, &block - end - - # Encode a string in Streaming mode. - # - # This starts scanning +code+ with the the Scanner for +lang+ - # while encodes the output with the Encoder for +format+. - # +options+ will be passed to the Encoder. - # - # See CodeRay::Encoder.encode_stream - def encode_stream code, lang, format, options = {} - encoder(format, options).encode_stream code, lang, options - end - # Encode a string. # # This scans +code+ with the the Scanner for +lang+ and then @@ -286,12 +265,6 @@ module CodeRay end - # A dummy module that is included by subclasses of - # CodeRay::Scanners::Scanner and CodeRay::Encoders::Encoder - # to show that they are able to handle streams. - module Streamable - end - end # Run a test script. -- cgit v1.2.1