summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-12-15 17:41:05 -0500
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-12-16 04:19:35 +0200
commit2d40a1cfa9930f96570cccf415f6038d6dcc657c (patch)
treeaa06015a5f019d2b0d7b337541180cb65ce30751 /indra/newview
parent59088a4824be5dc131b86ea355300a4c42b1670a (diff)
Clean up dead legacy headers and compiler work arounds
Clean up dead macos files Clean up dead windows build files Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/CMakeLists.txt2
-rw-r--r--indra/newview/Info-SecondLifeVorbis.plist28
-rw-r--r--indra/newview/VertexCache.h105
-rw-r--r--indra/newview/VorbisFramework.h80
-rwxr-xr-xindra/newview/build_win32_appConfig.py68
-rw-r--r--indra/newview/lllocalbitmaps.cpp2
-rw-r--r--indra/newview/lllocalgltfmaterials.cpp2
-rw-r--r--indra/newview/macutil_Prefix.h38
-rw-r--r--indra/newview/macview_Prefix.h229
9 files changed, 0 insertions, 554 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 09fb54faf4..c2b1473e8f 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1430,8 +1430,6 @@ set(viewer_HEADER_FILES
noise.h
pipeline.h
roles_constants.h
- VertexCache.h
- VorbisFramework.h
)
source_group("CMake Rules" FILES ViewerInstall.cmake)
diff --git a/indra/newview/Info-SecondLifeVorbis.plist b/indra/newview/Info-SecondLifeVorbis.plist
deleted file mode 100644
index 9cb367eec1..0000000000
--- a/indra/newview/Info-SecondLifeVorbis.plist
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>SecondLifeVorbis</string>
- <key>CFBundleGetInfoString</key>
- <string></string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleIdentifier</key>
- <string>com.secondlife.indra.vorbis</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>SecondLifeVorbis</string>
- <key>CFBundlePackageType</key>
- <string>FMWK</string>
- <key>CFBundleShortVersionString</key>
- <string></string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.0.1d1</string>
-</dict>
-</plist>
diff --git a/indra/newview/VertexCache.h b/indra/newview/VertexCache.h
deleted file mode 100644
index edb231feb1..0000000000
--- a/indra/newview/VertexCache.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * @file VertexCache.h
- * @brief VertexCache class definition
- *
- * $LicenseInfo:firstyear=2002&license=viewerlgpl$
- * Second Life Viewer Source Code
- * Copyright (C) 2010, Linden Research, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation;
- * version 2.1 of the License only.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
- * $/LicenseInfo$
- */
-
-
-#ifndef VERTEX_CACHE_H
-
-#define VERTEX_CACHE_H
-
-class VertexCache
-{
-
-public:
-
- VertexCache(int size)
- {
- numEntries = size;
-
- entries = new int[numEntries];
-
- for(int i = 0; i < numEntries; i++)
- entries[i] = -1;
- }
-
- VertexCache() { VertexCache(16); }
- ~VertexCache() { delete[] entries; entries = 0; }
-
- bool InCache(int entry)
- {
- bool returnVal = false;
- for(int i = 0; i < numEntries; i++)
- {
- if(entries[i] == entry)
- {
- returnVal = true;
- break;
- }
- }
-
- return returnVal;
- }
-
- int AddEntry(int entry)
- {
- int removed;
-
- removed = entries[numEntries - 1];
-
- //push everything right one
- for(int i = numEntries - 2; i >= 0; i--)
- {
- entries[i + 1] = entries[i];
- }
-
- entries[0] = entry;
-
- return removed;
- }
-
- void Clear()
- {
- memset(entries, -1, sizeof(int) * numEntries);
- }
-
- void Copy(VertexCache* inVcache)
- {
- for(int i = 0; i < numEntries; i++)
- {
- inVcache->Set(i, entries[i]);
- }
- }
-
- int At(int index) { return entries[index]; }
- void Set(int index, int value) { entries[index] = value; }
-
-private:
-
- int *entries;
- int numEntries;
-
-};
-
-#endif
diff --git a/indra/newview/VorbisFramework.h b/indra/newview/VorbisFramework.h
deleted file mode 100644
index 7ee9a8c411..0000000000
--- a/indra/newview/VorbisFramework.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * @file VorbisFramework.h
- * @author Dave Camp
- * @date Fri Oct 10 2003
- * @brief For the Macview project
- *
- * $LicenseInfo:firstyear=2003&license=viewerlgpl$
- * Second Life Viewer Source Code
- * Copyright (C) 2010, Linden Research, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation;
- * version 2.1 of the License only.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
- * $/LicenseInfo$
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "ogg/ogg.h"
-#include "vorbis/codec.h"
-#include "vorbis/vorbisenc.h"
-
-extern int mac_vorbis_analysis(vorbis_block *vb,ogg_packet *op);
-
-extern int mac_vorbis_analysis_headerout(vorbis_dsp_state *v,
- vorbis_comment *vc,
- ogg_packet *op,
- ogg_packet *op_comm,
- ogg_packet *op_code);
-
-extern int mac_vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi);
-
-extern int mac_vorbis_encode_ctl(vorbis_info *vi,int number,void *arg);
-
-extern int mac_vorbis_encode_setup_init(vorbis_info *vi);
-
-extern int mac_vorbis_encode_setup_managed(vorbis_info *vi,
- long channels,
- long rate,
-
- long max_bitrate,
- long nominal_bitrate,
- long min_bitrate);
-
-extern void mac_vorbis_info_init(vorbis_info *vi);
-extern void mac_vorbis_info_clear(vorbis_info *vi);
-extern void mac_vorbis_comment_init(vorbis_comment *vc);
-extern void mac_vorbis_comment_clear(vorbis_comment *vc);
-extern int mac_vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb);
-extern int mac_vorbis_block_clear(vorbis_block *vb);
-extern void mac_vorbis_dsp_clear(vorbis_dsp_state *v);
-extern float **mac_vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
-extern int mac_vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
-extern int mac_vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb);
-
-extern int mac_ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
-extern int mac_ogg_stream_init(ogg_stream_state *os,int serialno);
-extern int mac_ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
-extern int mac_ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
-extern int mac_ogg_page_eos(ogg_page *og);
-extern int mac_ogg_stream_clear(ogg_stream_state *os);
-
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/indra/newview/build_win32_appConfig.py b/indra/newview/build_win32_appConfig.py
deleted file mode 100755
index 1bfcc7a9bc..0000000000
--- a/indra/newview/build_win32_appConfig.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# @file build_win32_appConfig.py
-# @brief Create the windows app.config file to redirect crt linkage.
-#
-# $LicenseInfo:firstyear=2009&license=viewerlgpl$
-# Second Life Viewer Source Code
-# Copyright (C) 2010, Linden Research, Inc.
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation;
-# version 2.1 of the License only.
-#
-# This library 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
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#
-# Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
-# $/LicenseInfo$
-
-import sys, os, re
-from xml.dom.minidom import parse
-
-def munge_binding_redirect_version(src_manifest_name, src_config_name, dst_config_name):
- manifest_dom = parse(src_manifest_name)
- node = manifest_dom.getElementsByTagName('assemblyIdentity')[0]
- manifest_assm_ver = node.getAttribute('version')
-
- config_dom = parse(src_config_name)
- node = config_dom.getElementsByTagName('bindingRedirect')[0]
- node.setAttribute('newVersion', manifest_assm_ver)
- src_old_ver = re.match('([^-]*-).*', node.getAttribute('oldVersion')).group(1)
- node.setAttribute('oldVersion', src_old_ver + manifest_assm_ver)
- comment = config_dom.createComment("This file is automatically generated by the build. see indra/newview/build_win32_appConfig.py")
- config_dom.insertBefore(comment, config_dom.childNodes[0])
-
- print("Writing: " + dst_config_name)
- f = open(dst_config_name, 'w')
- config_dom.writexml(f)
- f.close()
-
-
-
-def main():
- config = sys.argv[1]
- src_dir = sys.argv[2]
- dst_dir = sys.argv[3]
- dst_name = sys.argv[4]
-
- if config.lower() == 'debug':
- src_manifest_name = dst_dir + '/Microsoft.VC80.DebugCRT.manifest'
- src_config_name = src_dir + '/SecondLifeDebug.exe.config'
- else:
- src_manifest_name = dst_dir + '/Microsoft.VC80.CRT.manifest'
- src_config_name = src_dir + '/SecondLife.exe.config'
-
- dst_config_name = dst_dir + '/' + dst_name
-
- munge_binding_redirect_version(src_manifest_name, src_config_name, dst_config_name)
-
- return 0
-
-if __name__ == "__main__":
- main()
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index 6e56aac270..a5ab5538e7 100644
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -31,8 +31,6 @@
/* own header */
#include "lllocalbitmaps.h"
-/* boost: will not compile unless equivalent is undef'd, beware. */
-#include "fix_macros.h"
#include <boost/filesystem.hpp>
/* image compression headers. */
diff --git a/indra/newview/lllocalgltfmaterials.cpp b/indra/newview/lllocalgltfmaterials.cpp
index d6facad23d..aeae7cb56a 100644
--- a/indra/newview/lllocalgltfmaterials.cpp
+++ b/indra/newview/lllocalgltfmaterials.cpp
@@ -30,8 +30,6 @@
/* own header */
#include "lllocalgltfmaterials.h"
-/* boost: will not compile unless equivalent is undef'd, beware. */
-#include "fix_macros.h"
#include <boost/filesystem.hpp>
/* time headers */
diff --git a/indra/newview/macutil_Prefix.h b/indra/newview/macutil_Prefix.h
deleted file mode 100644
index 4972ee4fa5..0000000000
--- a/indra/newview/macutil_Prefix.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * @file macutil_Prefix.h
- * @brief Precompiled prefix file
- *
- * $LicenseInfo:firstyear=2005&license=viewerlgpl$
- * Second Life Viewer Source Code
- * Copyright (C) 2010, Linden Research, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation;
- * version 2.1 of the License only.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
- * $/LicenseInfo$
- */
-
-/*
- *
- * Precompiled prefix file used for
- * AutoUpdater
- * crashreporter
- *
- */
-
-#include "fix_macros.h"
-
-#undef verify
-#undef require
diff --git a/indra/newview/macview_Prefix.h b/indra/newview/macview_Prefix.h
deleted file mode 100644
index faad8fa704..0000000000
--- a/indra/newview/macview_Prefix.h
+++ /dev/null
@@ -1,229 +0,0 @@
-/**
- * @file macview_Prefix.h
- * @brief Prefix header for all source files of the 'newview' target in the 'newview' project.
- *
- * $LicenseInfo:firstyear=2003&license=viewerlgpl$
- * Second Life Viewer Source Code
- * Copyright (C) 2010, Linden Research, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation;
- * version 2.1 of the License only.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
- * $/LicenseInfo$
- */
-
-// MBW -- This doesn't work. There are some conflicts between things in Carbon.h and some of the linden source.
-//#include <Carbon/Carbon.h>
-
-////////////////// From llagent.cpp
-#include "llpreprocessor.h"
-#include "stdtypes.h"
-#include "stdenums.h"
-
-#include "llagent.h"
-
-#include "llcoordframe.h"
-#include "indra_constants.h"
-#include "llmath.h"
-#include "llcriticaldamp.h"
-#include "llfocusmgr.h"
-#include "llparcel.h"
-#include "llpermissions.h"
-#include "llregionhandle.h"
-#include "m3math.h"
-#include "m4math.h"
-#include "message.h"
-#include "qmath.h"
-#include "v3math.h"
-#include "v4math.h"
-#include "vmath.h"
-//#include "llteleportflags.h"
-
-#include "llbox.h"
-#include "llbutton.h"
-#include "llconsole.h"
-#include "lldrawable.h"
-#include "llfirstuse.h"
-#include "llfloater.h"
-#include "llfloaterbuildoptions.h"
-#include "llfloaterchat.h"
-#include "llfloatergroups.h"
-#include "llfloaterworldmap.h"
-#include "llfloatermute.h"
-#include "llconversation.h"
-#include "llfloatertools.h"
-#include "llhudeffectlookat.h"
-#include "llhudmanager.h"
-#include "lljoystickbutton.h"
-#include "llmenugl.h"
-#include "llmorphview.h"
-#include "llmoveview.h"
-#include "llselectmgr.h"
-#include "llsky.h"
-#include "llrendersphere.h"
-#include "llstatusbar.h"
-#include "lltalkview.h"
-#include "lltool.h"
-#include "lltoolfocus.h"
-#include "lltoolcomp.h" // for gToolGun
-#include "lltoolgrab.h"
-#include "lltoolmgr.h"
-#include "lltoolpie.h"
-#include "llui.h" // for make_ui_sound
-#include "llviewercamera.h"
-#include "llviewermenu.h"
-#include "llviewerobjectlist.h"
-#include "llviewerparcelmgr.h"
-#include "llviewerparceloverlay.h"
-#include "llviewerregion.h"
-#include "llviewerstats.h"
-#include "llviewerwindow.h"
-#include "llvoavatar.h"
-#include "llvoground.h"
-#include "llvosky.h"
-#include "llworld.h"
-#include "pipeline.h"
-
-/////////////////// From llfloater.cpp
-#include "llbutton.h"
-#include "lldraghandle.h"
-#include "llfocusmgr.h"
-#include "llresizebar.h"
-#include "llresizehandle.h"
-#include "llresmgr.h"
-#include "llui.h"
-#include "llviewborder.h"
-#include "lluictrlfactory.h"
-
-
-/////////////////// From lldrawpool.cpp
-#include "llface.h"
-#include "llcontrol.h"
-#include "pipeline.h"
-
-#include "llviewerobjectlist.h" // For debug listing.
-
-//extern LLPipeline gPipeline;
-
-#include "lldrawpoolsimple.h"
-#include "lldrawpoolalpha.h"
-#include "lldrawpoolavatar.h"
-#include "lldrawpooltree.h"
-#include "lldrawpoolterrain.h"
-#include "lldrawpoolsky.h"
-#include "lldrawpoolwater.h"
-#include "lldrawpoolground.h"
-#include "lldrawpoolbump.h"
-
-/////////////////// From llface.cpp
-#include "llgl.h"
-#include "llviewerimage.h"
-#include "llsky.h"
-#include "llvosky.h"
-#include "llcontrol.h"
-#include "v3color.h"
-#include "pipeline.h"
-#include "llvolume.h"
-#include "llviewercamera.h"
-#include "lllightconstants.h"
-
-#include "llvovolume.h"
-#include "m3math.h"
-#include "lldrawpoolbump.h"
-
-
-
-/////////////////// From llpanel.cpp
-#include "llpanel.h"
-
-#include "llfontgl.h"
-#include "llrect.h"
-#include "llerror.h"
-#include "lltimer.h"
-
-#include "llmenugl.h"
-#include "llstatusbar.h"
-#include "llui.h"
-#include "llkeyboard.h"
-#include "llviewerwindow.h"
-#include "llcontrol.h"
-#include "lluictrl.h"
-#include "lluictrlfactory.h"
-#include "llviewborder.h"
-#include "llviewerimagelist.h"
-#include "llbutton.h"
-#include "llfocusmgr.h"
-
-
-
-/////////////////// From llvovolume.cpp
-#include "llvovolume.h"
-#include "llviewerimagelist.h"
-
-#include "llcontrol.h"
-
-#include "object_flags.h"
-
-#include "material_codes.h"
-#include "llagent.h"
-#include "llworld.h"
-#include "llviewerregion.h"
-#include "llprimitive.h"
-#include "llvolume.h"
-#include "lldrawable.h"
-#include "llface.h"
-#include "llvolumemgr.h"
-#include "llsky.h"
-
-#include "pipeline.h"
-#include "llmaterialtable.h"
-#include "message.h"
-#include "llviewertextureanim.h"
-#include "llviewercamera.h"
-#include "lldrawpoolbump.h"
-
-
-/////////////////// From llagentpilot.cpp
-#include "llagentpilot.h"
-#include "llagent.h"
-#include "llframestats.h"
-#include "viewer.h"
-#include "llcontrol.h"
-
-
-/////////////////// From llloginview.cpp
-#include "llloginview.h"
-
-#include "indra_constants.h" // for key and mask constants
-#include "llfontgl.h"
-#include "v4color.h"
-#include "llwindow_impl.h"
-
-#include "llbutton.h"
-#include "llcheckboxctrl.h"
-#include "llcombobox.h"
-#include "llcontrol.h"
-#include "lllineeditor.h"
-#include "lltextbox.h"
-#include "llui.h"
-//#include "lluiconstants.h"
-#include "llviewerimagelist.h"
-#include "llviewermenu.h" // for handle_preferences()
-#include "llviewerwindow.h" // to link into child list
-#include "llfocusmgr.h"
-#include "llmd5.h"
-#include "llversion.h"
-#include "viewer.h"
-