Merge pull request #2463 from gingerik/externs-function-bodies

Remove function bodies from externs
This commit is contained in:
Andreas Hocevar
2014-07-29 13:52:12 +02:00
2 changed files with 7 additions and 12 deletions

View File

@@ -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.<number>}
*/
VBArray.prototype.toArray = function() {return null;};
VBArray.prototype.toArray = function() {};
/**

View File

@@ -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) {};