commit 0e76ccb55a78747e976d336723b269d51e18509b
parent 113fe9a7a48e1d48f2a033a5e0a6b49eb44ca613
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date: Sat, 2 Apr 2016 18:15:35 -0700
Remove cruft
Diffstat:
33 files changed, 14 insertions(+), 658 deletions(-)
diff --git a/src/spek-artwork.cc b/src/spek-artwork.cc
@@ -1,21 +1,3 @@
-/* spek-artwork.cc
- *
- * Copyright (C) 2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
diff --git a/src/spek-artwork.h b/src/spek-artwork.h
@@ -1,23 +1,4 @@
-/* spek-artwork.h
- *
- * Copyright (C) 2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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"
@@ -26,5 +7,3 @@
#define ART_CLOSE "art-close"
void spek_artwork_init();
-
-#endif
diff --git a/src/spek-audio.cc b/src/spek-audio.cc
@@ -1,21 +1,3 @@
-/* spek-audio.cc
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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
diff --git a/src/spek-audio.h b/src/spek-audio.h
@@ -1,23 +1,4 @@
-/* spek-audio.h
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
@@ -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
diff --git a/src/spek-events.cc b/src/spek-events.cc
@@ -1,21 +1,3 @@
-/* spek-events.cc
- *
- * Copyright (C) 2012-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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)
diff --git a/src/spek-events.h b/src/spek-events.h
@@ -1,23 +1,4 @@
-/* spek-events.h
- *
- * Copyright (C) 2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
@@ -33,7 +14,6 @@ public:
const float *get_values() const { return this->values; }
wxEvent *Clone() const { return new SpekHaveSampleEvent(*this); }
-// DECLARE_DYNAMIC_CLASS(SpekHaveSampleEvent);
private:
int bands;
@@ -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
diff --git a/src/spek-fft.cc b/src/spek-fft.cc
@@ -1,21 +1,3 @@
-/* spek-fft.cc
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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
diff --git a/src/spek-fft.h b/src/spek-fft.h
@@ -1,23 +1,4 @@
-/* spek-fft.h
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
@@ -57,5 +38,3 @@ private:
std::vector<float> input;
std::vector<float> output;
};
-
-#endif
diff --git a/src/spek-palette.cc b/src/spek-palette.cc
@@ -1,21 +1,3 @@
-/* spek-palette.cc
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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:
diff --git a/src/spek-palette.h b/src/spek-palette.h
@@ -1,26 +1,5 @@
-/* spek-palette.h
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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
diff --git a/src/spek-pipeline.cc b/src/spek-pipeline.cc
@@ -1,28 +1,3 @@
-/* spek-pipeline.cc
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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 <omega@cse.ogi.edu>
- * (c) 2006 Stefan Kost <ensonic@users.sf.net>
- * (c) 2007-2009 Sebastian Dröge <sebastian.droege@collabora.co.uk>
- */
-
#include <wx/intl.h>
#include <assert.h>
diff --git a/src/spek-pipeline.h b/src/spek-pipeline.h
@@ -1,23 +1,4 @@
-/* spek-pipeline.h
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
@@ -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
diff --git a/src/spek-platform.cc b/src/spek-platform.cc
@@ -1,21 +1,3 @@
-/* spek-platform.cc
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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
diff --git a/src/spek-platform.h b/src/spek-platform.h
@@ -1,23 +1,4 @@
-/* spek-platform.h
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
@@ -33,5 +14,3 @@ bool spek_platform_can_change_language();
// Fonts are smaller on OSX.
double spek_platform_font_scale();
-
-#endif
diff --git a/src/spek-preferences-dialog.cc b/src/spek-preferences-dialog.cc
@@ -1,21 +1,3 @@
-/* spek-preferences-dialog.cc
- *
- * Copyright (C) 2011-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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-platform.h"
#include "spek-preferences.h"
diff --git a/src/spek-preferences-dialog.h b/src/spek-preferences-dialog.h
@@ -1,23 +1,4 @@
-/* spek-preferences-dialog.h
- *
- * Copyright (C) 2011-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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_PREFERENCES_DIALOG_H_
-#define SPEK_PREFERENCES_DIALOG_H_
+#pragma once
#include <wx/wx.h>
@@ -34,5 +15,3 @@ private:
DECLARE_EVENT_TABLE()
};
-
-#endif
diff --git a/src/spek-preferences.cc b/src/spek-preferences.cc
@@ -1,21 +1,3 @@
-/* spek-preferences.cc
- *
- * Copyright (C) 2011-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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/string.h>
#include "spek-platform.h"
diff --git a/src/spek-preferences.h b/src/spek-preferences.h
@@ -1,23 +1,4 @@
-/* spek-preferences.h
- *
- * Copyright (C) 2011-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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_PREFERENCES_H_
-#define SPEK_PREFERENCES_H_
+#pragma once
#include <wx/fileconf.h>
#include <wx/intl.h>
@@ -43,5 +24,3 @@ private:
wxLocale *locale;
wxFileConfig *config;
};
-
-#endif
diff --git a/src/spek-ruler.cc b/src/spek-ruler.cc
@@ -1,21 +1,3 @@
-/* spek-ruler.cc
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
#include "spek-ruler.h"
diff --git a/src/spek-ruler.h b/src/spek-ruler.h
@@ -1,23 +1,4 @@
-/* spek-ruler.h
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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_RULER_H_
-#define SPEK_RULER_H_
+#pragma once
#include <wx/dc.h>
#include <wx/string.h>
@@ -58,5 +39,3 @@ protected:
double offset;
formatter_cb formatter;
};
-
-#endif
diff --git a/src/spek-spectrogram.cc b/src/spek-spectrogram.cc
@@ -1,21 +1,3 @@
-/* spek-spectrogram.cc
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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>
#include <wx/dcbuffer.h>
diff --git a/src/spek-spectrogram.h b/src/spek-spectrogram.h
@@ -1,23 +1,4 @@
-/* spek-spectrogram.h
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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_SPECTROGRAM_H_
-#define SPEK_SPECTROGRAM_H_
+#pragma once
#include <memory>
@@ -64,5 +45,3 @@ private:
DECLARE_EVENT_TABLE()
};
-
-#endif
diff --git a/src/spek-utils.cc b/src/spek-utils.cc
@@ -1,21 +1,3 @@
-/* spek-utils.cc
- *
- * Copyright (C) 2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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 <assert.h>
#include <limits.h>
#include <stdlib.h>
diff --git a/src/spek-utils.h b/src/spek-utils.h
@@ -1,23 +1,4 @@
-/* spek-utils.h
- *
- * Copyright (C) 2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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_UTILS_H_
-#define SPEK_UTILS_H_
+#pragma once
inline int spek_max(int a, int b)
{
@@ -31,5 +12,3 @@ inline int spek_min(int a, int b)
// Compare version numbers, e.g. 1.9.2 < 1.10.0
int spek_vercmp(const char *a, const char *b);
-
-#endif
diff --git a/src/spek-window.cc b/src/spek-window.cc
@@ -1,21 +1,3 @@
-/* spek-window.cc
- *
- * Copyright (C) 2010-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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/aboutdlg.h>
#include <wx/artprov.h>
#include <wx/dnd.h>
diff --git a/src/spek-window.h b/src/spek-window.h
@@ -1,23 +1,4 @@
-/* spek-window.h
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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_WINDOW_H_
-#define SPEK_WINDOW_H_
+#pragma once
#include <wx/wx.h>
@@ -47,5 +28,3 @@ private:
DECLARE_EVENT_TABLE()
};
-
-#endif
diff --git a/src/spek.cc b/src/spek.cc
@@ -1,21 +1,3 @@
-/* spek.cc
- *
- * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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/cmdline.h>
#include <wx/log.h>
#include <wx/socket.h>
diff --git a/tests/perf.cc b/tests/perf.cc
@@ -1,21 +1,3 @@
-/* perf.cc
- *
- * Copyright (C) 2013-2014 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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 <cstdlib>
#include <iostream>
#include <fstream>
diff --git a/tests/test-audio.cc b/tests/test-audio.cc
@@ -1,21 +1,3 @@
-/* test-audio.cc
- *
- * Copyright (C) 2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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 <map>
#include "spek-audio.h"
diff --git a/tests/test-fft.cc b/tests/test-fft.cc
@@ -1,21 +1,3 @@
-/* test-fft.cc
- *
- * Copyright (C) 2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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-fft.h"
#include "test.h"
diff --git a/tests/test-utils.cc b/tests/test-utils.cc
@@ -1,21 +1,3 @@
-/* test-utils.cc
- *
- * Copyright (C) 2012-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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-utils.h"
#include "test.h"
diff --git a/tests/test.cc b/tests/test.cc
@@ -1,21 +1,3 @@
-/* test.cc
- *
- * Copyright (C) 2012-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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 "test.h"
int g_passes = 0;
diff --git a/tests/test.h b/tests/test.h
@@ -1,23 +1,4 @@
-/* test.h
- *
- * Copyright (C) 2012-2013 Alexander Kojevnikov <alexander@kojevnikov.com>
- *
- * 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 TEST_H_
-#define TEST_H_
+#pragma once
#include <cmath>
#include <cstdio>
@@ -55,5 +36,3 @@ template<class T> void test(const std::string& message, const T& expected, const
void test_audio();
void test_fft();
void test_utils();
-
-#endif