diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts
index 0595aa75959..bbc76c73b66 100644
--- a/src/compiler/parser.ts
+++ b/src/compiler/parser.ts
@@ -2,8 +2,6 @@
///
module ts {
- export var throwOnJSDocErrors = false;
-
let nodeConstructors = new Array Node>(SyntaxKind.Count);
/* @internal */ export let parseTime = 0;
@@ -5049,13 +5047,6 @@ module ts {
return finishNode(result);
}
- function setError(message: DiagnosticMessage) {
- parseErrorAtCurrentToken(message);
- if (throwOnJSDocErrors) {
- throw new Error(message.key);
- }
- }
-
function parseJSDocTopLevelType(): JSDocType {
var type = parseJSDocType();
if (token === SyntaxKind.BarToken) {