Skip to content

Commit

Permalink
Remove unused var in getSample()
Browse files Browse the repository at this point in the history
  • Loading branch information
rochars committed Jul 13, 2018
1 parent d611af8 commit acbb55e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jul 13 2018 02:04:03 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jul 13 2018 02:11:27 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 1 addition & 3 deletions docs/api/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ <h1 class="page-title">index.js</h1>
* @throws {Error} If the sample index is off range.
*/
getSample(index) {
/** @type {number} */
let sample;
index = index * (this.dataType.bits / 8);
if (index + this.dataType.bits / 8 > this.data.samples.length) {
throw new Error('Range error');
Expand Down Expand Up @@ -902,7 +900,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jul 13 2018 02:04:02 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jul 13 2018 02:11:27 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
54 changes: 27 additions & 27 deletions docs/api/module-wavefile.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h4 class="name" id="dataType"><span class="type-signature">(non-null) </span>da

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line832">line 832</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line830">line 830</a>
</li></ul></dd>


Expand Down Expand Up @@ -230,7 +230,7 @@ <h4 class="name" id="deleteCuePoint"><span class="type-signature"></span>deleteC

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line512">line 512</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line510">line 510</a>
</li></ul></dd>


Expand Down Expand Up @@ -363,7 +363,7 @@ <h4 class="name" id="deleteTag"><span class="type-signature"></span>deleteTag<sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line456">line 456</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line454">line 454</a>
</li></ul></dd>


Expand Down Expand Up @@ -518,7 +518,7 @@ <h4 class="name" id="fromALaw"><span class="type-signature"></span>fromALaw<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line341">line 341</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line339">line 339</a>
</li></ul></dd>


Expand Down Expand Up @@ -659,7 +659,7 @@ <h4 class="name" id="fromBase64"><span class="type-signature"></span>fromBase64<

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line183">line 183</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line181">line 181</a>
</li></ul></dd>


Expand Down Expand Up @@ -821,7 +821,7 @@ <h4 class="name" id="fromBuffer"><span class="type-signature"></span>fromBuffer<

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line160">line 160</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line158">line 158</a>
</li></ul></dd>


Expand Down Expand Up @@ -1092,7 +1092,7 @@ <h4 class="name" id="fromDataURI"><span class="type-signature"></span>fromDataUR

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line213">line 213</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line211">line 211</a>
</li></ul></dd>


Expand Down Expand Up @@ -1254,7 +1254,7 @@ <h4 class="name" id="fromIMAADPCM"><span class="type-signature"></span>fromIMAAD

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line308">line 308</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line306">line 306</a>
</li></ul></dd>


Expand Down Expand Up @@ -1395,7 +1395,7 @@ <h4 class="name" id="fromMuLaw"><span class="type-signature"></span>fromMuLaw<sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line374">line 374</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line372">line 372</a>
</li></ul></dd>


Expand Down Expand Up @@ -1536,7 +1536,7 @@ <h4 class="name" id="fromScratch"><span class="type-signature"></span>fromScratc

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line124">line 124</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line122">line 122</a>
</li></ul></dd>


Expand Down Expand Up @@ -2024,7 +2024,7 @@ <h4 class="name" id="getTag"><span class="type-signature"></span>getTag<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line424">line 424</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line422">line 422</a>
</li></ul></dd>


Expand Down Expand Up @@ -2179,7 +2179,7 @@ <h4 class="name" id="listCuePoints"><span class="type-signature"></span>listCueP

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line545">line 545</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line543">line 543</a>
</li></ul></dd>


Expand Down Expand Up @@ -2281,7 +2281,7 @@ <h4 class="name" id="listTags"><span class="type-signature"></span>listTags<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line437">line 437</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line435">line 435</a>
</li></ul></dd>


Expand Down Expand Up @@ -2387,7 +2387,7 @@ <h4 class="name" id="setCuePoint"><span class="type-signature"></span>setCuePoin

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line471">line 471</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line469">line 469</a>
</li></ul></dd>


Expand Down Expand Up @@ -2543,7 +2543,7 @@ <h4 class="name" id="setSample"><span class="type-signature"></span>setSample<sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line101">line 101</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line99">line 99</a>
</li></ul></dd>


Expand Down Expand Up @@ -2728,7 +2728,7 @@ <h4 class="name" id="setTag"><span class="type-signature"></span>setTag<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line393">line 393</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line391">line 391</a>
</li></ul></dd>


Expand Down Expand Up @@ -2913,7 +2913,7 @@ <h4 class="name" id="toALaw"><span class="type-signature"></span>toALaw<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line323">line 323</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line321">line 321</a>
</li></ul></dd>


Expand Down Expand Up @@ -2997,7 +2997,7 @@ <h4 class="name" id="toBase64"><span class="type-signature"></span>toBase64<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line192">line 192</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line190">line 190</a>
</li></ul></dd>


Expand Down Expand Up @@ -3132,7 +3132,7 @@ <h4 class="name" id="toBitDepth"><span class="type-signature"></span>toBitDepth<

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line248">line 248</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line246">line 246</a>
</li></ul></dd>


Expand Down Expand Up @@ -3329,7 +3329,7 @@ <h4 class="name" id="toBuffer"><span class="type-signature"></span>toBuffer<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line173">line 173</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line171">line 171</a>
</li></ul></dd>


Expand Down Expand Up @@ -3464,7 +3464,7 @@ <h4 class="name" id="toDataURI"><span class="type-signature"></span>toDataURI<sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line204">line 204</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line202">line 202</a>
</li></ul></dd>


Expand Down Expand Up @@ -3599,7 +3599,7 @@ <h4 class="name" id="toIMAADPCM"><span class="type-signature"></span>toIMAADPCM<

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line282">line 282</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line280">line 280</a>
</li></ul></dd>


Expand Down Expand Up @@ -3739,7 +3739,7 @@ <h4 class="name" id="toMuLaw"><span class="type-signature"></span>toMuLaw<span c

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line356">line 356</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line354">line 354</a>
</li></ul></dd>


Expand Down Expand Up @@ -3823,7 +3823,7 @@ <h4 class="name" id="toRIFF"><span class="type-signature"></span>toRIFF<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line220">line 220</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line218">line 218</a>
</li></ul></dd>


Expand Down Expand Up @@ -3907,7 +3907,7 @@ <h4 class="name" id="toRIFX"><span class="type-signature"></span>toRIFX<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line231">line 231</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line229">line 229</a>
</li></ul></dd>


Expand Down Expand Up @@ -3991,7 +3991,7 @@ <h4 class="name" id="updateLabel"><span class="type-signature"></span>updateLabe

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line560">line 560</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line558">line 558</a>
</li></ul></dd>


Expand Down Expand Up @@ -4148,7 +4148,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jul 13 2018 02:04:03 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jul 13 2018 02:11:27 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ export default class WaveFile extends WavBuffer {
* @throws {Error} If the sample index is off range.
*/
getSample(index) {
/** @type {number} */
let sample;
index = index * (this.dataType.bits / 8);
if (index + this.dataType.bits / 8 > this.data.samples.length) {
throw new Error('Range error');
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acbb55e

Please sign in to comment.