Commits

Barthelemy Dagenais  committed d59cc41

cleanup. removed logging statements in rtf parser.

  • Participants
  • Parent commits d43d8fb

Comments (0)

Files changed (1)

File ca.mcgill.cs.swevo.qualyzer/src/ca/mcgill/cs/swevo/qualyzer/editors/RTFDocumentProvider2.java

 	protected void setDocumentContent(IDocument document, InputStream contentStream, String encoding)
 			throws CoreException
 	{
-//      TO REMOVE BEFORE RELEASE. LEFT IN CASE BUG #121 REAPPEARS
-//		StringBuilder builder = new StringBuilder();
-//		// DEBUG ONLY
-//		try {
-//			BufferedReader br = new BufferedReader(new InputStreamReader(contentStream));
-//			String thisLine;
-//			gLogger.error("QDEBUG - CONTENT OF FILE!");
-//			while((thisLine = br.readLine()) != null) {
-//				gLogger.error(thisLine);
-//				builder.append(thisLine + "\n");
-//			}
-//			byte[] content = builder.toString().getBytes();
-//			ByteArrayInputStream bais = new ByteArrayInputStream(content);
-//			contentStream = bais;
-//		} catch(Exception e) {
-//			gLogger.error("QDEBUG: Error while debugging rtf parser.");
-//		}
-		
 		RTFDocument rtfDocument = (RTFDocument) document;
 		StringBuilder text = new StringBuilder();
 		Map<String, Integer> currentTags = new HashMap<String, Integer>();