summaryrefslogtreecommitdiff
path: root/sources/scalac/util
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-06-12 06:36:22 +0000
committerpaltherr <paltherr@epfl.ch>2003-06-12 06:36:22 +0000
commit329c70cae6c2450244a57be3ce86bd04a9965c3b (patch)
tree1089ef0439f3561cbc9405ef6adea1a2bbe4a955 /sources/scalac/util
parente06aeaebbd4a8e8017cee946e406fb7fb692cedd (diff)
downloadscala-329c70cae6c2450244a57be3ce86bd04a9965c3b.tar.gz
scala-329c70cae6c2450244a57be3ce86bd04a9965c3b.tar.bz2
scala-329c70cae6c2450244a57be3ce86bd04a9965c3b.zip
- Removed support for notes
Diffstat (limited to 'sources/scalac/util')
-rw-r--r--sources/scalac/util/OptionParser.java8
-rw-r--r--sources/scalac/util/Reporter.java28
2 files changed, 1 insertions, 35 deletions
diff --git a/sources/scalac/util/OptionParser.java b/sources/scalac/util/OptionParser.java
index 01eecb2208..4796c96f93 100644
--- a/sources/scalac/util/OptionParser.java
+++ b/sources/scalac/util/OptionParser.java
@@ -112,10 +112,6 @@ public class CommandParser {
public void warning(String message) {
reporter.warning(product + ": " + message);
}
-
- public void note(String message) {
- reporter.note(product + ": " + message);
- }
}
public abstract class ArgumentParser {
@@ -236,10 +232,6 @@ public abstract class OptionParser extends ArgumentParser {
public void warning(String message) {
command.warning("option -" + option + ": " + message);
}
-
- public void note(String message) {
- command.note("option -" + option + ": " + message);
- }
}
/*
public class OptimizeOptionParser extends OptionParser {
diff --git a/sources/scalac/util/Reporter.java b/sources/scalac/util/Reporter.java
index a1fb832e28..c4a50faf8e 100644
--- a/sources/scalac/util/Reporter.java
+++ b/sources/scalac/util/Reporter.java
@@ -26,8 +26,6 @@ public class Reporter {
private int errors;
/** Number of warning issued totally */
private int warnings;
- /** Number of notes issued totally */
- private int notes;
//########################################################################
// Reporter constructors
@@ -45,7 +43,6 @@ public class Reporter {
this.nowarn = false;
this.verbose = false;
this.errors = 0;
- this.notes = 0;
}
//########################################################################
@@ -53,7 +50,7 @@ public class Reporter {
/** Whether warnings should be issued */
public boolean nowarn;
- /** Whether notes and information messages should be issued */
+ /** Whether information messages should be issued */
public boolean verbose;
/** Whether a prompt should be displayed after errors and warnings */
public boolean prompt;
@@ -71,11 +68,6 @@ public class Reporter {
return warnings;
}
- /** Return the number of notes issued totally */
- public int notes() {
- return notes;
- }
-
/** Return the number of errors issued totally as a string */
public String getErrorCountString() {
return getCountString(errors, "error");
@@ -86,11 +78,6 @@ public class Reporter {
return getCountString(warnings, "warning");
}
- /** Return the number of notes issued totally as a string */
- public String getNoteCountString() {
- return getCountString(notes, "note");
- }
-
public String getCountString(int count, String what) {
switch (count) {
case 0: return "no " + what + "s";
@@ -109,7 +96,6 @@ public class Reporter {
public void resetCounters() {
errors = 0;
warnings = 0;
- notes = 0;
}
/** Issue a message */
@@ -147,21 +133,9 @@ public class Reporter {
if (prompt) failOnDemand();
}
- /** Issue a note */
- public void note(String message) {
- note(message, false);
- }
-
- /** Issue a note if it is not hidden */
- public void note(String message, boolean hidden) {
- if (!hidden) report(message);
- if (!hidden) notes++;
- }
-
public void printSummary() {
if (errors() > 0) report(getErrorCountString() + " found");
if (warnings() > 0) report(getWarningCountString() + " found");
- if (notes() > 0) report(getNoteCountString() + " found");
}
//########################################################################