Skip to content

Commit 11b1580

Browse files
committed
Marked stateless methods as static
1 parent a712186 commit 11b1580

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Ignia.Topics.Web.Mvc/Controllers/LayoutController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected Topic GetNavigationRoot(Topic currentTopic, int fromRoot = 2, string d
158158
/// A helper function that will determine how far a given topic is from the root of a tree.
159159
/// </summary>
160160
/// <param name="sourceTopic">The <see cref="Topic"/> to pull the values from.</param>
161-
private int DistanceFromRoot(Topic sourceTopic) {
161+
private static int DistanceFromRoot(Topic sourceTopic) {
162162
var distance = 1;
163163
while (sourceTopic.Parent != null) {
164164
sourceTopic = sourceTopic.Parent;

Ignia.Topics/Mapping/CachedTopicMappingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private object CacheViewModel(string contentType, object viewModel, Tuple<int, T
186186
/// <param name="viewModel">The view model object to cache; can be any POCO object.</param>
187187
/// <param name="cacheKey">A <see cref="Tuple<int, Type, Relationships"/> representing the cache key.</param>
188188
/// <returns>The <paramref name="viewModel"/>.</returns>
189-
private Tuple<int, Type, Relationships> GetCacheKey(int topicId, Type type, Relationships relationships) {
189+
private static Tuple<int, Type, Relationships> GetCacheKey(int topicId, Type type, Relationships relationships) {
190190
return new Tuple<int, Type, Relationships>(topicId, type, relationships);
191191
}
192192

0 commit comments

Comments
 (0)