Skip to content

Commit 9fbaaad

Browse files
committed
refactor: Remove not used Views and Models
refactor: Remove unused usings
1 parent 7b523db commit 9fbaaad

File tree

9 files changed

+13
-68
lines changed

9 files changed

+13
-68
lines changed

src/DevTKSS.Uno.Samples.MvuxGallery/DevTKSS.Uno.Samples.MvuxGallery.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Uno.Sdk">
1+
<Project Sdk="Uno.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>net9.0-desktop</TargetFrameworks> <!--;net9.0-windows10.0.26100-->
44
<!-- <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>-->
@@ -57,7 +57,11 @@
5757
<UnoSplashScreen Include="Assets\SplashScreens\*" />
5858
</ItemGroup>
5959
<ItemGroup>
60-
<Resource Remove="Assets\Samples\MainPage.xaml.txt" />
60+
<Resource Remove="Assets\Samples\Countable.cs.txt" />
61+
<Resource Remove="Assets\Samples\CounterModel.cs.txt" />
62+
<Resource Remove="Assets\Samples\CounterPage.xaml.cs" />
63+
<Resource Remove="Assets\Samples\CounterPage.xaml.txt" />
64+
<Resource Remove="Assets\Samples\NavigationView-Sample.xaml.txt" />
6165
</ItemGroup>
6266

6367
</Project>

src/DevTKSS.Uno.Samples.MvuxGallery/Models/CodeSamples/CodeSampleService.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
using Microsoft.Extensions.Configuration;
2+
13
namespace DevTKSS.Uno.Samples.MvuxGallery.Models.CodeSamples;
24
public record CodeSampleService : ICodeSampleService
35
{
46
public CodeSampleService(
5-
IOptions<CodeSampleOptionsConfiguration> options,
6-
ILogger<CodeSampleService> logger,
7-
IStorage storage)
7+
IOptions<CodeSampleOptionsConfiguration> options,
8+
ILogger<CodeSampleService> logger,
9+
IStorage storage)
810
{
911
_options = options.Value;
1012
_logger = logger;

src/DevTKSS.Uno.Samples.MvuxGallery/Models/CodeSamples/ICodeSampleService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ namespace DevTKSS.Uno.Samples.MvuxGallery.Models.CodeSamples;
33

44
public interface ICodeSampleService
55
{
6-
76
/// <summary>
87
/// Get the content of a specific code sample asynchronously.
98
/// </summary>

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/ViewModels/CounterModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace DevTKSS.Uno.Samples.MvuxGallery.Presentation.ViewModels;
22

3-
internal partial record CounterModel
3+
public partial record CounterModel
44
{
55
private readonly IStringLocalizer _stringLocalizer;
66
public CounterModel(IStringLocalizer stringLocalizer)

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/ViewModels/SecondModel.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/Views/CounterPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Page x:Class="DevTKSS.Uno.Samples.MvuxGallery.Presentation.Views.CounterPage"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:local="using:UnoHotDesignApp1.Presentation.Views"
4+
xmlns:local="using:DevTKSS.Uno.Samples.MvuxGallery.Presentation.Views"
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
xmlns:utu="using:Uno.Toolkit.UI"

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/Views/CounterPage.xaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
namespace DevTKSS.Uno.Samples.MvuxGallery.Presentation.Views;
44

5-
[Bindable]
65
public sealed partial class CounterPage : Page
76
{
8-
// MainViewModel ViewModel => (MainViewModel)DataContext;
97
public CounterPage()
108
{
119
this.InitializeComponent();
12-
// this.DataContext = (CounterViewModel)DataContext;
1310
}
1411
}

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/Views/SecondPage.xaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/Views/SecondPage.xaml.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)