Skip to content

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkay committed Apr 3, 2016
1 parent 113fe9a commit 0e76ccb
Show file tree
Hide file tree
Showing 33 changed files with 14 additions and 658 deletions.
18 changes: 0 additions & 18 deletions src/spek-artwork.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/* spek-artwork.cc
*
* Copyright (C) 2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#include <wx/artprov.h>
#include <wx/iconbndl.h>

Expand Down
23 changes: 1 addition & 22 deletions src/spek-artwork.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/* spek-artwork.h
*
* Copyright (C) 2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_ARTWORK_H_
#define SPEK_ARTWORK_H_
#pragma once

#define ART_SPEK "art-spek"
#define ART_OPEN "art-open"
Expand All @@ -26,5 +7,3 @@
#define ART_CLOSE "art-close"

void spek_artwork_init();

#endif
18 changes: 0 additions & 18 deletions src/spek-audio.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/* spek-audio.cc
*
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

extern "C" {
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
Expand Down
23 changes: 1 addition & 22 deletions src/spek-audio.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/* spek-audio.h
*
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_AUDIO_H_
#define SPEK_AUDIO_H_
#pragma once

#include <memory>
#include <ostream>
Expand Down Expand Up @@ -76,5 +57,3 @@ inline bool operator!(AudioError error) {
inline std::ostream& operator<<(std::ostream& os, AudioError error) {
return os << static_cast<int>(error);
}

#endif
18 changes: 0 additions & 18 deletions src/spek-events.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/* spek-events.cc
*
* Copyright (C) 2012-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#include "spek-events.h"

//IMPLEMENT_DYNAMIC_CLASS(SpekHaveSampleEvent, wxEvent)
Expand Down
24 changes: 1 addition & 23 deletions src/spek-events.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/* spek-events.h
*
* Copyright (C) 2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_EVENTS_H_
#define SPEK_EVENTS_H_
#pragma once

#include <wx/wx.h>

Expand All @@ -33,7 +14,6 @@ class SpekHaveSampleEvent: public wxEvent
const float *get_values() const { return this->values; }

wxEvent *Clone() const { return new SpekHaveSampleEvent(*this); }
// DECLARE_DYNAMIC_CLASS(SpekHaveSampleEvent);

private:
int bands;
Expand All @@ -49,5 +29,3 @@ DECLARE_EVENT_TYPE(SPEK_HAVE_SAMPLE, wxID_ANY)
#define SPEK_EVT_HAVE_SAMPLE(fn) \
DECLARE_EVENT_TABLE_ENTRY(SPEK_HAVE_SAMPLE, -1, -1, \
(wxObjectEventFunction) (SpekHaveSampleEventFunction) &fn, (wxObject *) NULL ),

#endif
18 changes: 0 additions & 18 deletions src/spek-fft.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/* spek-fft.cc
*
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#include <cmath>

#define __STDC_CONSTANT_MACROS
Expand Down
23 changes: 1 addition & 22 deletions src/spek-fft.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/* spek-fft.h
*
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_FFT_H_
#define SPEK_FFT_H_
#pragma once

#include <memory>
#include <vector>
Expand Down Expand Up @@ -57,5 +38,3 @@ class FFTPlan
std::vector<float> input;
std::vector<float> output;
};

#endif
18 changes: 0 additions & 18 deletions src/spek-palette.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/* spek-palette.cc
*
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#include "spek-palette.h"

// Modified version of Dan Bruton's algorithm:
Expand Down
23 changes: 1 addition & 22 deletions src/spek-palette.h
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
/* spek-palette.h
*
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_PALETTE_H_
#define SPEK_PALETTE_H_
#pragma once

#include <stdint.h>

uint32_t spek_palette_spectrum(double level);

#endif
25 changes: 0 additions & 25 deletions src/spek-pipeline.cc
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
/* spek-pipeline.cc
*
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*
* Conversion of decoded samples into an FFT-happy format is heavily
* influenced by GstSpectrum which is part of gst-plugins-good.
* The original code:
* (c) 1999 Erik Walthinsen <[email protected]>
* (c) 2006 Stefan Kost <[email protected]>
* (c) 2007-2009 Sebastian Dröge <[email protected]>
*/

#include <wx/intl.h>

#include <assert.h>
Expand Down
23 changes: 1 addition & 22 deletions src/spek-pipeline.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/* spek-pipeline.h
*
* Copyright (C) 2010-2013 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_PIPELINE_H_
#define SPEK_PIPELINE_H_
#pragma once

#include <memory>
#include <string>
Expand All @@ -42,5 +23,3 @@ void spek_pipeline_close(struct spek_pipeline *pipeline);
std::string spek_pipeline_desc(const struct spek_pipeline *pipeline);
double spek_pipeline_duration(const struct spek_pipeline *pipeline);
int spek_pipeline_sample_rate(const struct spek_pipeline *pipeline);

#endif
18 changes: 0 additions & 18 deletions src/spek-platform.cc
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/* spek-platform.cc
*
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#include <cstring>

#ifdef OS_OSX
Expand Down
23 changes: 1 addition & 22 deletions src/spek-platform.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
/* spek-platform.h
*
* Copyright (C) 2010-2012 Alexander Kojevnikov <[email protected]>
*
* Spek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spek is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spek. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef SPEK_PLATFORM_H_
#define SPEK_PLATFORM_H_
#pragma once

#include <wx/string.h>

Expand All @@ -33,5 +14,3 @@ bool spek_platform_can_change_language();

// Fonts are smaller on OSX.
double spek_platform_font_scale();

#endif
Loading

0 comments on commit 0e76ccb

Please sign in to comment.