From 077bcdd77824020ad856d276ee9531633e6ecaae Mon Sep 17 00:00:00 2001 From: Erik Timmers Date: Tue, 29 Jul 2014 12:02:00 +0200 Subject: [PATCH] Remove function bodies from externs --- externs/vbarray.js | 4 ++-- externs/webgl-debug.js | 15 +++++---------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/externs/vbarray.js b/externs/vbarray.js index ae2085e190..187817fd54 100644 --- a/externs/vbarray.js +++ b/externs/vbarray.js @@ -16,7 +16,7 @@ var VBArray = function(safeArray) {}; /** * @return {number} */ -VBArray.prototype.dimensions = function() {return 0;}; +VBArray.prototype.dimensions = function() {}; /** @@ -36,7 +36,7 @@ VBArray.prototype.lbound = function(opt_dimension) {}; /** * @return {Array.} */ -VBArray.prototype.toArray = function() {return null;}; +VBArray.prototype.toArray = function() {}; /** diff --git a/externs/webgl-debug.js b/externs/webgl-debug.js index 43e10ac02d..9f5803831c 100644 --- a/externs/webgl-debug.js +++ b/externs/webgl-debug.js @@ -25,8 +25,7 @@ var WebGLDebugLostContextSimulatingCanvas = function() {}; * @nosideeffects * @return {number} */ -WebGLDebugLostContextSimulatingCanvas.prototype.getNumCalls = - function() {return NaN;}; +WebGLDebugLostContextSimulatingCanvas.prototype.getNumCalls = function() {}; /** @@ -64,7 +63,7 @@ var WebGLDebugUtils = {}; * @param {number} value * @return {string} */ -WebGLDebugUtils.glEnumToString = function(value) {return '';}; +WebGLDebugUtils.glEnumToString = function(value) {}; /** @@ -73,9 +72,7 @@ WebGLDebugUtils.glEnumToString = function(value) {return '';}; * @param {Array} args Args. * @return {string} String. */ -WebGLDebugUtils.glFunctionArgsToString = function(functionName, args) { - return ''; -}; +WebGLDebugUtils.glFunctionArgsToString = function(functionName, args) {}; /** @@ -88,9 +85,7 @@ WebGLDebugUtils.init = function(ctx) {}; * @param {HTMLCanvasElement} canvas * @return {WebGLDebugLostContextSimulatingCanvas} */ -WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) { - return null; -}; +WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) {}; /** @@ -100,4 +95,4 @@ WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) { * @return {WebGLDebugRenderingContext} */ WebGLDebugUtils.makeDebugContext = - function(context, opt_onErrorFunc, opt_onFunc) {return null;}; + function(context, opt_onErrorFunc, opt_onFunc) {};