Skip to content

Commit

Permalink
#5977: Remove unneeded typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jul 17, 2022
1 parent aa91f53 commit 8225f1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion radiantcore/shaders/CShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ void CShader::commitModifications()
_originalTemplate = _template;
}

const ShaderTemplatePtr& CShader::getTemplate()
const ShaderTemplate::Ptr& CShader::getTemplate()
{
return _template;
}
Expand Down
2 changes: 1 addition & 1 deletion radiantcore/shaders/CShader.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class CShader final :
void refreshImageMaps() override;

// Returns the current template (including any modifications) of this material
const ShaderTemplatePtr& getTemplate();
const ShaderTemplate::Ptr& getTemplate();

void saveDeclaration();

Expand Down
11 changes: 1 addition & 10 deletions radiantcore/shaders/ShaderTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

#include "ishaders.h"
#include "parser/DefTokeniser.h"
#include "math/Vector3.h"
#include "math/Vector4.h"
#include "decl/EditableDeclaration.h"

#include <map>
#include <memory>

namespace shaders { class MapExpression; }
Expand Down Expand Up @@ -555,12 +554,4 @@ class ShaderTemplate final :
void determineCoverage();
};

/* TYPEDEFS */

// Pointer to ShaderTemplate
typedef std::shared_ptr<ShaderTemplate> ShaderTemplatePtr;

// Map of named ShaderTemplates
typedef std::map<std::string, ShaderTemplatePtr> ShaderTemplateMap;

}

0 comments on commit 8225f1f

Please sign in to comment.