Skip to content

Commit

Permalink
Clean up standard/swing library by deprecating/moving code examples
Browse files Browse the repository at this point in the history
Deprecate scala/xml/include/sax/Main.scala.
Move scala/swing/test/* to docs/examples.

Saves 160KB in scala-swing.jar.

Fixes SI-4627.
  • Loading branch information
soc committed Dec 7, 2011
1 parent 332fec9 commit f3e7e98
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 37 deletions.
4 changes: 0 additions & 4 deletions build.xml
Expand Up @@ -851,9 +851,6 @@ PACKED QUICK BUILD (PACK)
<fileset dir="${build-quick.dir}/classes/library">
<include name="scala/swing/**"/>
</fileset>
<fileset dir="${src.dir}/swing">
<include name="scala/swing/test/images/**"/>
</fileset>
</jar>
</target>

Expand Down Expand Up @@ -1453,7 +1450,6 @@ DOCUMENTATION
<exclude name="runtime/*$.scala"/>
<exclude name="runtime/ScalaRunTime.scala"/>
<exclude name="runtime/StringAdd.scala"/>
<exclude name="scala/swing/test/**"/>
</scaladoc>
<touch file="${build-docs.dir}/library.complete" verbose="no"/>
<stopwatch name="docs.lib.timer" action="total"/>
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import java.awt.Dimension

Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import scala.swing._
import scala.swing.event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import swing.event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import swing.event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._

Expand All @@ -11,4 +10,4 @@ object HelloWorld extends SimpleSwingApplication {
title = "Hello, World!"
contents = new Button("Click Me!")
}
}
}
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import scala.swing._
import scala.swing.event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import scala.swing.Swing._
import scala.swing.{MainFrame, Panel}
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

object ListViewDemo extends SimpleSwingApplication {
def top = new MainFrame {
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import event._

Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import swing.event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import java.awt.Dimension
import swing.event._
Expand Down
@@ -1,5 +1,4 @@
package scala.swing
package test
package examples.swing

import swing._
import event._
Expand Down Expand Up @@ -145,4 +144,4 @@ object UIDemo extends SimpleSwingApplication {
}
}
}
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/library/scala/xml/include/sax/Main.scala
Expand Up @@ -10,11 +10,11 @@
package scala.xml
package include.sax

import scala.xml.include._
import scala.util.control.Exception.{ catching, ignoring }
import org.xml.sax.XMLReader
import org.xml.sax.helpers.XMLReaderFactory

@deprecated("Code example will be moved to documentation.", "2.10.0")
object Main {
private val namespacePrefixes = "http://xml.org/sax/features/namespace-prefixes"
private val lexicalHandler = "http://xml.org/sax/properties/lexical-handler"
Expand Down

0 comments on commit f3e7e98

Please sign in to comment.